package presentationTier.actions;

import presentationTier.dialogs.ChangeMediumDialog;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import presentationTier.Global;
import presentationTier.MainForm;

/**
 *
 * @author vojta
 */
public class ChangeMediumOkAction implements ActionListener{

    ChangeMediumDialog dialog;

    public ChangeMediumOkAction(ChangeMediumDialog aThis) {
        dialog = aThis;
    }

    public void actionPerformed(ActionEvent e) {
        Global.refreshTable((MainForm) dialog.getParent());
        dialog.dispose();
    }

}
